package com.dkm.ec.home.repository;

import java.util.List;
import java.util.Map;

import com.dkm.base.api.model.Page;
import com.dkm.biz.repository.IRepository;
import com.dkm.ec.home.domain.HomeEntity;
import com.dkm.ec.home.persistence.entity.HomeEntityPo;
/**
 * 对象功能:家居产品 Repository接口
 * 开发公司:SKG.COM
 * 开发人员:颜超敏
 * 创建时间:2014-12-17 11:31:17
 */
public interface HomeEntityRepository extends IRepository<String, HomeEntityPo,HomeEntity>{
	  
	 public List<HomeEntityPo> findRelByProdKey(String prodId);
	 
	 public HomeEntityPo findDetailByKey(String key);   //前端根据产品业务键查找产品详细
	 
	 public List<HomeEntityPo> findAssociatHomeEntityPo(String homeId); //前端根据产品id查找关联产品
	 
	 public List<HomeEntityPo> findForSelectorPaged(Map<String, Object> map, Page page);
	 
	 public List<HomeEntityPo> findForSelector(Map<String, Object> map);
	 public Integer countForSelector(Map<String, Object> params);
	 
    public List<HomeEntityPo> findAssociatWholeHomeEntityPo(String homeId) ;//根据场景ID查找户型

	public HomeEntityPo findHomeEntityPoByHomeId(String prodId);
}
